const expressJwt = require('express-jwt');
const { secretKey } = require('./constant');

//unless 为排除那些接口
const jwtAuth = expressJwt({secret: secretKey}).unless({path:['/home/getMusicNumber','/home/getBcgList','/captcha','/register','/register/postmail','/retrieve',"/login",]})

module.exports = jwtAuth;